package cn.gzjp.modules.logis.entity;

import org.hibernate.validator.constraints.Length;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 司机车辆路线Entity
 * @author zengcp
 * @version 2018-04-04
 */
public class LogisCarRoad extends DataEntity<LogisCarRoad> {
	
	private static final long serialVersionUID = 1L;
	private String openid;		// openid
	private String startProvince;	//起始城市
	private String startcity;		// 起始城市
	private String startArea;
	private String endProvince;		// 目的城市
	private String endcity;		// 目的城市
    private String endArea;//目的区

	private String unitPrice;		// 运输单价(元/吨)
	private String returnUnitPrice;		// 返程单价(元/吨)
	private String refPrice;//参考价格

	private boolean receivePmsg;//是否接收推送消息
	private int score;// 竞争力分数
	private int returnScore;//返程竞争力分数

	private int deliveryCount;//货源数

	private String foward;//0正向 1反向


	public LogisCarRoad() {
		super();
	}

	public LogisCarRoad(String id){
		super(id);
	}

	@Length(min=0, max=32, message="openid长度必须介于 0 和 32 之间")
	@ExcelField(title="openid", align=2, sort=1)
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	@Length(min=0, max=256, message="起始城市长度必须介于 0 和 256 之间")
	@ExcelField(title="起始城市", align=2, sort=2)
	public String getStartcity() {
		return startcity;
	}

	public void setStartcity(String startcity) {
		this.startcity = startcity;
	}
	
	@Length(min=0, max=256, message="目的城市长度必须介于 0 和 256 之间")
	@ExcelField(title="目的城市", align=2, sort=3)
	public String getEndcity() {
		return endcity;
	}

	public void setEndcity(String endcity) {
		this.endcity = endcity;
	}

	public String getStartProvince() {
		return startProvince;
	}

	public void setStartProvince(String startProvince) {
		this.startProvince = startProvince;
	}

	public String getEndProvince() {
		return endProvince;
	}

	public void setEndProvince(String endProvince) {
		this.endProvince = endProvince;
	}

	public String getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(String unitPrice) {
		this.unitPrice = unitPrice;
	}

	public String getReturnUnitPrice() {
		return returnUnitPrice;
	}

	public void setReturnUnitPrice(String returnUnitPrice) {
		this.returnUnitPrice = returnUnitPrice;
	}

	public boolean isReceivePmsg() {
		return receivePmsg;
	}

	public void setReceivePmsg(boolean receivePmsg) {
		this.receivePmsg = receivePmsg;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getDeliveryCount() {
		return deliveryCount;
	}

	public void setDeliveryCount(int deliveryCount) {
		this.deliveryCount = deliveryCount;
	}

	public String getFoward() {
		return foward;
	}

	public void setFoward(String foward) {
		this.foward = foward;
	}

	public int getReturnScore() {
		return returnScore;
	}

	public void setReturnScore(int returnScore) {
		this.returnScore = returnScore;
	}

	public String getRefPrice() {
		return refPrice;
	}

	public void setRefPrice(String refPrice) {
		this.refPrice = refPrice;
	}

    public String getEndArea() {
        return endArea;
    }

    public void setEndArea(String endArea) {
        this.endArea = endArea;
    }

	public String getStartArea() {
		return startArea;
	}

	public void setStartArea(String startArea) {
		this.startArea = startArea;
	}
}